Skip to content

AO3-4274 Display relations to deleted works#5710

Open
luis-pabon-tf wants to merge 15 commits intootwcode:masterfrom
luis-pabon-tf:AO3-4274
Open

AO3-4274 Display relations to deleted works#5710
luis-pabon-tf wants to merge 15 commits intootwcode:masterfrom
luis-pabon-tf:AO3-4274

Conversation

@luis-pabon-tf
Copy link
Copy Markdown
Contributor

@luis-pabon-tf luis-pabon-tf commented Apr 6, 2026

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-4274

Purpose

Fixes display issues that happen on the Work/Edit Work/Downloaded pages when there's a relationship with a different Work, and then that other Work is deleted.
The PR also includes translatable entries where code was added or edited.

References

https://otwarchive.atlassian.net/browse/AO3-7349 - These issues are pretty close to each other. These changes should help tackle that one too.

Credit

Luis Pabon (they/he)

Comment thread config/locales/controllers/e.yml Outdated
Comment thread app/views/works/_standard_form.html.erb Outdated
</dt>
<dd class="parent">
<%= label_tag "parent-options-show", ts("This work is a remix, a translation, a podfic, or was inspired by another work") %>
<%= label_tag "parent-options-show", t("works.associations.parent.header") %>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per our internationalization standards, lazy keys (starting with a . and omitting the name of the view/partial) are preferred. I remember that some places, most importantly helpers/callbacks, don't work with that, but IIRC a partial like this should still work.

heading: Download
work_header_notes:
inspired_by:
deleted: Inspired by a deleted work
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't we missing a key for (non-download) translation of a deleted work?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were! I have added it in the new commits.

@luis-pabon-tf
Copy link
Copy Markdown
Contributor Author

Thanks for the feedback! I will take care of these this week :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants